<?php
	include "../../public/commom/config.php";
	include "../../public/commom/commom.php";
	
	if($_GET) {
		$shop_id = $_GET["shop_id"];
		
		$sql = "SELECT * FROM shop WHERE id = $shop_id";
		
		$result = mysqli_query($conn, $sql);
		
		$row = mysqli_fetch_array($result);
		
		$_SESSION["shop"][$shop_id] = $row;
		$_SESSION["shop"][$shop_id]["num"] = 1;
		
		mysqli_close($conn);
		
		//print_r($_SESSION["shop"][$shop_id]);
			
		header("Location: ./index.php");
	}
?>